<?php
/**
 * Created by PhpStorm.
 * User => 王松
 * Time => 2017/6/18 14:34
 */

namespace App\Project\Filters;

class MarriageHistoryFilter extends FilterAbstract
{
    protected function forExtend()
    {
        return [
            "marriage.time"                   => 1,
            "marriage.son"                    => 1,
            "marriage.daughter"               => 1,
            "macrosomia"                      => 1,
            "menstruation.menarche"           => 1,
            "menstruation.period.days"        => 1,
            "menstruation.period.law"         => 1,
            "menstruation.cycle.days"         => 1,
            "menstruation.cycle.law"          => 1,
            "menstruation.last_time.date"     => 1,
            "menstruation.last_time.continue" => 1,
            "menstruation.menstrual_volume"   => 1,
            "menopause.age"                   => 1,
        ];
    }

    protected function getRootFieldsHasNoSon()
    {
        return [
            'id',
            'record_id',
            'marriage',
            'macrosomia',
            'menstruation',
            'menopause',
            'remark',
        ];
    }

    protected function getRootFieldsHasSon()
    {
        return [];
    }

    protected function getSonFieldsForEachRoot()
    {
        return [];
    }
}